/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.wisnu.hibernate.service;

import com.wisnu.hibernate.entity.Ptik;
import com.wisnu.hibernate.error.PtikException;
import java.util.List;

/**
 *
 * @author Wisnu Wardoyo
 */
public interface PtikDao {
    
    public void insertPtik(Ptik ptik) throws PtikException;
    
    public void updatePtik(Ptik ptik) throws PtikException;
    
    public void deletePtik(Ptik ptik) throws PtikException;
    
    public Ptik getByNim(String nim) throws PtikException;
    
    public Ptik getByEmail (String email) throws PtikException;
    
    public List<Ptik> getAllPtik() throws PtikException;
    
}
